home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / powervww / pvini.h < prev    next >
C/C++ Source or Header  |  1998-01-05  |  2KB  |  41 lines

  1. //  ____________________________________________________
  2. // |                                                    |
  3. // |  Project:     POWER VIEW INTERFACE                 |
  4. // |  File:        PVINI.H                              |
  5. // |  Compiler:    WPP386 (10.6)                        |
  6. // |                                                    |
  7. // |  Subject:     INI files processor interface        |
  8. // |                                                    |
  9. // |  Author:      Emil Dotchevski                      |
  10. // |____________________________________________________|
  11. //
  12. // E-mail: zajo@geocities.com
  13. // URL:    http://www.geocities.com/SiliconValley/Bay/3577
  14.  
  15. #ifndef _PVINI_H
  16. #define _PVINI_H
  17. #ifdef CYR
  18. #define INIERR_RANGE    "ìÑñ«»│▒▓¿¼á ▒▓«⌐¡«▒▓"
  19. #else
  20. #define INIERR_RANGE    "Value out of range"
  21. #endif
  22. #endif
  23.  
  24. FILE *read_ini( char *filename );
  25. Ttext_editor *open_ini( char *filename );
  26. void close_ini( void );
  27. boolean seek_section( boolean fatal, char *section );
  28. char *seek_var( boolean fatal, char *var );
  29. boolean ini( char *var, boolean &x, boolean _default );
  30. boolean ini( char *var, long &x, long _default );
  31. #ifndef NOFLOAT
  32. boolean ini( char *var, double &x, double _default );
  33. #endif
  34. boolean set_ini( char *var, char *value, ... );
  35. boolean save_ini( void );
  36. void ini_err( boolean flag, char *msg, ... );
  37. void ini_lnerr( boolean flag, char *msg, ... );
  38. void ini_errs( boolean report );
  39. char *ini_section( void );
  40. uint ini_line( void );
  41.